package com.fund.datacopy.task.job;

import com.fund.datacopy.task.thread.TaskPool;
import java.util.List;
import org.apache.log4j.Logger;

public class ScheduleTimeTaskJob {
	protected static final Logger logger = Logger.getLogger(ScheduleTimeTaskJob.class);
	private List<String> groupNames;

	public List<String> getGroupNames() {
		return this.groupNames;
	}

	public void setGroupNames(List<String> groupNames) {
		this.groupNames = groupNames;
	}

	public void copyData() {
		logger.info("now start schedual task");
		TaskPool pool = new TaskPool();
		try {
			pool.copy(this.groupNames);
			logger.info("execute success");
		} catch (Exception e) {
			e.printStackTrace();
			logger.info("execute failure");
		}
	}
}
